package com.yonyou.pmclouds.team.rmiitf;

import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.team.entity.TeamEnterpriseVO;

public interface TeamEnterpriseMaintain {
    /**
     * 添加项目参与企业，只支持一个项目添加
     */
    String[] addEnterpriseToProject(String pkProject,TeamEnterpriseVO[] enterprises) throws BusinessException;

    String removeEnterpriseOfTeam(TeamEnterpriseVO enterprises) throws BusinessException;

    TeamEnterpriseVO[] updateEnterprise(TeamEnterpriseVO[] enterprises) throws BusinessException;

    /**
     * 针对同一项目下参与企业的修改
     * @param pkProject
     * @param insertEnterpriseVOs
     * @param updateEnterpriseVOs
     * @param deleteEnterpriseVOs
     */
    void updateEnterpriseForProject(String pkProject,TeamEnterpriseVO[] insertEnterpriseVOs,TeamEnterpriseVO[] updateEnterpriseVOs,TeamEnterpriseVO[] deleteEnterpriseVOs) throws BusinessException;
}
